package com.probiz.estore.eai.log.service.impl;

import java.util.List;

import com.probiz.estore.common.model.eai.log.EaiJobLog;
import com.probiz.estore.core.service.impl.GenericManagerImpl;
import com.probiz.estore.eai.log.dao.EaiJobLogDao;
import com.probiz.estore.eai.log.service.EaiJobLogManager;


/**
 * Manager implementation for EaiJobLog, responsible for business processing, and communicate between web and persistence layer.
 */
public class EaiJobLogManagerImpl extends GenericManagerImpl<EaiJobLog> implements EaiJobLogManager {

	private EaiJobLogDao eaiJobLogDao = null;

	/**
	 * @param eaiJobLogDao
	 *            the eaiJobLogDao to set
	 */
	public void setEaiJobLogDao(EaiJobLogDao eaiJobLogDao) {
		this.eaiJobLogDao = eaiJobLogDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#init()
	 */
	@Override
	protected void initManager() {
		dao = eaiJobLogDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#preDelete(java.lang.Object)
	 */
	@Override
	protected void preDelete(EaiJobLog entity) {

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#preSave(java.lang.Object)
	 */
	@Override
	protected void preSave(EaiJobLog entity) {

	}

	public EaiJobLog findLastEaiJobLogByName(String name) {	
		return this.eaiJobLogDao.findLastEaiJobLogByName(name);		
	}

}
